package com.io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FISDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("./fos.dat");
        int read1 = fis.read();
        System.out.println("read1 = " + read1);
        int read2 = fis.read();
        System.out.println("read2 = " + read2);
        int read3 = fis.read();
        System.out.println("read2 = " + read3);

        fis.close();

    }
}
